﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[ExecuteInEditMode]
public class VolumeTextureMaker : MonoBehaviour
{
    Camera mCamera;

    private void Awake()
    {
        mCamera = GetComponentInChildren<Camera>(true);
        if(mCamera == null)
        {
            var go = new GameObject("[Camera]",typeof(Camera));
            mCamera = go.GetComponent<Camera>();
            go.transform.SetParent(transform);
            go.transform.localPosition = Vector3.zero;
            go.transform.localScale = Vector3.one;
            go.transform.localRotation = Quaternion.identity;
        }


    }


    // Start is called before the first frame update
    void Start()
    {
        


    }

    // Update is called once per frame
    void Update()
    {
        
    }


}
